package cn.com.megan.common.core.enums;

import lombok.Getter;

/**
 * megan
 *
 * @author megan
 * @Date 2025/5/14 16:45
 */
@Getter
public enum ResponseCode implements CodeEnum{
    SUCCESS(0, "SUCCESS"),
    ERROR(1, "ERROR"),
    NEED_LOGIN(10, "NEED_LOGIN"),
    NOT_FOUND(404, "服务未找到"),
    TIME_OUT(707,"服务超时"),
    PARAMETER_ERROR(110,"参数错误"),
    SMS_SUCCESS(200, "成功")
    ;

    private final Integer code;

    private final String msg;

    ResponseCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
